﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SlideProduct.ascx.cs"
    Inherits="ShowroomMobile.Controls.SlideProduct" %>
<!-- MODULE Home Featured Products -->
<div id="homecarousel" style="position: relative">
    <div style="display: block;" class="jcarousel-container jcarousel-container-horizontal">
        <div disabled="false" style="display: block;" class="jcarousel-prev jcarousel-prev-horizontal">
        </div>
        <div disabled="false" style="display: block;" class="jcarousel-next jcarousel-next-horizontal">
        </div>
        <div class="jcarousel-clip jcarousel-clip-horizontal">
            <ul style="width: 4620px; left: -3696px;" class="jcarousel-list jcarousel-list-horizontal"
                id="mycarousel">
                <asp:Repeater runat="server" ID="rptSlideProduct">
                    <ItemTemplate>
                        <li style="width: 228px;" class="jcarousel-item jcarousel-item-horizontal jcarousel-item-1 jcarousel-item-1-horizontal">
                            <a href="ProductDetails.aspx?cid=<%# Eval("CategoryID")%>&id=<%# Eval("ProductID") %>" title="<%# Eval("Name") %>" class="product_image">
                                <span></span>
                                <img src="<%# ShowroomMobile.Utilities.GetKeySetting("PathUploadImageThumb") + "/" + Eval("ImageUrl") %>" alt="<%# Eval("Name") %>" /></a>
                            <h5>
                                <a href="ProductDetails.aspx?cid=<%# Eval("CategoryID")%>&id=<%# Eval("ProductID") %>" title="<%# Eval("Name") %>"><%# ShowroomMobile.Utilities.GetSubString(Eval("Name").ToString(), 40) %>...</a>
                                <span class="price"><%# (Convert.IsDBNull(Eval("Price")) || Convert.ToDecimal(Eval("Price")) == 0) ? "" : String.Format("{0:C}", Eval("Price"))%></span>
                                </h5>
                            </li>
                    </ItemTemplate>
                </asp:Repeater>
            </ul>
        </div>
    </div>
</div>
